from celery_tasks.main import celery_app
from meiduo_mall.apps.verifications import constants

from meiduo_mall.libs.yuntongxun.sms import CCP


@celery_app.task(name='send_sms_code')
def send_sms_code(mobile, sms_code):
    CCP().send_template_sms(mobile, [f'{sms_code}', constants.SMS_CODE_REDIS_EXPIRES // 60], 1)
